﻿@model CreateSiteViewModel
@{
	ViewBag.Title = "Create a new site";
}
<div id="containernarrow">
	<h2>@ViewBag.Title</h2>

	@using (Html.BeginForm()) {
		@Html.AntiForgeryToken()
		<fieldset>
			<legend>Site properties</legend>
			<div>
				@Html.LabelFor(m => m.Name, "Site name")
				@Html.TextBoxFor(m => m.Name, new { @class = "te fe-max" })
				@Html.ValidationMessageFor(m => m.Name)
			</div>
			<div>
				@Html.LabelFor(m => m.Theme, "Theme")
				@Html.EditorFor(m => m.Theme, "ThemeChooser", new { ThemesListUrl = Url.Action("AvailableThemes", "Themes")} )
				@Html.ValidationMessageFor(m => m.Theme)
			</div>
		</fieldset>
		<fieldset>
			<legend>Site administrator</legend>
			<div>
				@Html.LabelFor(m => m.AdminUsername, "Username")
				@Html.TextBoxFor(m => m.AdminUsername, new { @class = "te fe-small" })
				@Html.ValidationMessageFor(m => m.AdminUsername)
			</div>
			<div>
				@Html.LabelFor(m => m.AdminPassword, "Password")
				@Html.PasswordFor(m => m.AdminPassword, new { @class = "te fe-small" })
				@Html.ValidationMessageFor(m => m.AdminPassword)
			</div>
			<div>
				@Html.LabelFor(m => m.AdminPasswordConfirmation, "Confirm password")
				@Html.PasswordFor(m => m.AdminPasswordConfirmation, new { @class = "te fe-small" })
				@Html.ValidationMessageFor(m => m.AdminPasswordConfirmation)
			</div>
		</fieldset>
		<input type="submit" value="Create site" />
	}
</div>